package string;
/**
* static String valueOf(数据类型 a):
 * 可将其他数据类型转换为String
* */
public class ValueDemo {
    public static void main(String[] args) {
        int a = 123;
        String s1 = String.valueOf(a);
        System.out.println(s1);
        double b = 123.123;
        String s2 = String.valueOf(b);
        System.out.println(s2);

    }
}
